/* indent size: 2 */

module.exports = app => {
  const DataTypes = app.Sequelize;

  const Model = app.model.define('equipment', {
    id: {
      type: DataTypes.INTEGER(10),
      allowNull: false,
      primaryKey: true
    },
    title: {
      type: DataTypes.STRING(255),
      allowNull: true
    },
    sub_title: {
      type: DataTypes.STRING(255),
      allowNull: true
    },
    img_url: {
      type: DataTypes.STRING(255),
      allowNull: true
    },
    content: {
      type: DataTypes.TEXT,
      allowNull: true
    },
    user_id: {
      type: DataTypes.INTEGER(2),
      allowNull: true
    },
    create_time: {
      type: DataTypes.BIGINT,
      allowNull: true
    },
    update_time: {
      type: DataTypes.BIGINT,
      allowNull: true
    }
  }, {
    tableName: 'equipment'
  });

  Model.associate = function() {

  }

  return Model;
};
